import http from '../api/http'

//音乐
function wudi(idx = 1) {
    const url = `/music-api/top/list?idx=${idx}`
    return http.get(url);
}
//播放音乐
function play(id) {
    const url = `/music-api/song/url?id=${id}`;
    return http.get(url);
}
//mv
function video() {
    const url = `/music-api/personalized/mv`
    return http.get(url);
}
//播放MV
function playVideo(id) {
    const url = `/music-api/mv/detail?mvid=${id}`;
    return http.get(url);
}
//评论
function user(id) {
    const url = `/music-api/comment/mv?id=${id}`
    return http.get(url);
}
export {
    wudi,
    play,
    video,
    playVideo,
    user
}